/*
 * @Date: 2020-11-27 18:10:27
 * @LastEditors: 小枫
 * @description: 数据库配置
 * @LastEditTime: 2020-11-27 18:18:53
 * @FilePath: \stu-nest\src\config\database.ts
 */
import { join } from 'path';

export default {
  type: 'mysql',
  host: 'localhost',
  port: 3306,
  username: 'liuhao',
  password: '123456',
  database: 'nest',
  entities: [join(__dirname, '../', '**/**.entity{.ts,.js}')],
  synchronize: true,
};
